const path = require('path');

module.exports = {
  entry: './index.js',
  output: {
    path: path.resolve(__dirname,'lib'),
    filename: 'index.js', // 默认main.js
    library: 'animalApi',
    libraryTarget: 'var'
  }
}